class User {
	String name
	String email
	static hasMany = [assignedTasks : Task]
	static mappedBy = [assignedTasks : "owner"]
	String toString() { name }
	
	static constraints = {
		name(maxLength:30, unique:true, blank:false)
		email(email:true, blank:false)
	}
}
